﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.DataAnnotations;

namespace CommunitySystem.Model.Silverlight
{
    public class PublicOfficialInfo : DataEntity
    {
        private int _ID;
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        private string _Name;
        [Required(ErrorMessage="考试名称必须填写")]
        public string Name
        {
            get { return _Name; }
            set
            {
                if (_Name != value)
                {
                    _Name = value;
                    Validate("Name", value, this);
                }
            }
        }

        private int _Status;
        public int Status
        {
            get { return _Status; }
            set { _Status = value; }
        }

        private int _Type;
        public int Type
        {
            get { return _Type; }
            set { _Type = value; }
        }

        private string _Infomation;
        public string Infomation
        {
            get { return _Infomation; }
            set { _Infomation = value; }
        }

        private string _DSC;
        public string DSC
        {
            get { return _DSC; }
            set { _DSC = value; }
        }

        private string _InputName;
        public string InputName
        {
            get { return _InputName; }
            set { _InputName = value; }
        }


        private DateTime? _InputTiem;
        public DateTime? InputTime
        {
            get { return _InputTiem; }
            set { _InputTiem = value; }
        }

        private string _DownloadFile;
        public string DownloadFile
        {
            get { return _DownloadFile; }
            set { _DownloadFile = value; }
        }

        private string _Office;
        public string Office
        {
            get { return _Office; }
            set { _Office = value; }
        }

        private DateTime? _YM;

        public DateTime? YM
        {
            get { return _YM; }
            set { _YM = value; }
        }
        
    }
}
